#include "zonejeu.h"

#include <QtGui/QBrush>
#include <QtGui/QGraphicsPixmapItem>
#include <QtGui/QGraphicsScene>

#include <QtCore/QDebug>
#include <QtGui/QMouseEvent>

ZoneJeu::ZoneJeu() {
    m_scene = new QGraphicsScene();
    m_scene->setBackgroundBrush(QBrush(Qt::green));

    setScene(m_scene);

    x = 0;
    y = 0;
}

ZoneJeu::~ZoneJeu() {
    delete m_scene;
}

void ZoneJeu::afficherCarte(QGraphicsPixmapItem *pCarte) {
    m_scene->addItem(pCarte);
}

void QGraphicsView::mousePressEvent ( QMouseEvent * event ) {
    qDebug() << "X: " << event->globalX() << "- Y " << event->globalY();
}
